#pragma once

#include "cardplayer.h"

using namespace std ;

class ThreeCards:public CardPlayer
{

private:
	int level ;
	bool lost ;
	int score ;
	string name ;

protected:
	bool Three() ;
	bool PureSuitSerial();
	bool PureSuit();
	bool Serial() ;
	bool Double();
	bool Mix();

	
	bool MixMax( ThreeCards& );
	bool DoubleMax( ThreeCards& ) ;
	bool SerialMax( ThreeCards& ) ;
	bool PureSuitMax( ThreeCards& ) ;
	bool PureSuitSerialMax( ThreeCards& ) ;
	bool ThreeMax( ThreeCards& ) ;

	int DoubleValue() ;
	int SinglePosition() ;

public:
	ThreeCards():CardPlayer( 3 )
	{
		level = 0 ; 
		lost = false ;
	}
	int GetLevel() ;
	bool Lost() ;
	void SetLost() ;
	bool operator > ( ThreeCards& ) ;
	void ShowLevel() ;
	string LevelName( int ) ;
	void SetName( string& ) ;
	string Name();
	void AddScore( int ) ;
	bool SameLevelMax( int& , ThreeCards&  ) ;


};